<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        let num = 123;

        let a =12;
        let b = 5;

        // ${内部是可以写js语句}
        // let str = `
        //     这是一段文字，
        //     ${num},
        //     ${a+b}
        // `;

        // console.log(str);

        function fn(){   
            return "这是fn内部返回的值"
        }

        let str = `
            这是一段文字，
            ${num},
            ${a+b},
            ${fn()}
        `;

        console.log(str);


    </script>
</body>
</html>